import axios from './AxiosApi.js'

//登录
// export const login = (param) => { return axios.get(`/user/login`, {"params": param}).then(res => res) }  //例：get 请求
export const login = (param) => { return axios.post(`/oauth/noToken/login`,  param).then(res => res) }            //例：post 请求
export const logout = () => { return axios.post(`/oauth/noToken/logout`, param).then(res => res) } // 退出登录请求

